package com.xmg.p2p.base.service;

import com.xmg.p2p.base.domain.SystemDictionary;
import com.xmg.p2p.base.domain.SystemDictionaryItem;
import com.xmg.p2p.base.query.PageResult;
import com.xmg.p2p.base.query.SystemDictionaryQueryObject;

import java.util.List;

/**
 * Created by  zsl on  Date: 2017-11-02
 */
public interface ISystemDictionaryService {

    PageResult queryDics(SystemDictionaryQueryObject qo);


    void saveOrUpdateDic(SystemDictionary dictionary);

    PageResult queryItems(SystemDictionaryQueryObject qo);

    /**
     * 查询所有的数据字典明细
     */
    List<SystemDictionary> listAllDics();

    void saveOrUpdateItem(SystemDictionaryItem item);


    /**
     * 根据数据字典分类sn查询明细
     *
     * @param sn
     * @return
     */
    List<SystemDictionaryItem> listByParentSn(String sn);
}
